package com.biz.model.Hmodel;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;

/*************************************************************************
 * 版本：         V1.0
 *
 * 文件名称 ：TorderMain.java 描述说明 ：
 *
 * 创建信息 : create by 曹凯 on 2016-9-1 上午10:05:52  修订信息 : modify by ( ) on (date) for ( )
 *
 * 版权信息 : Copyright (c) 2015 扬州北斗软件有限公司
 **************************************************************************/
@Entity
@Table(name = "order_main_shop"
)
public class TorderMain implements java.io.Serializable {
    private String id;
    private String code;
    private String payCode;
    private String openId;
    private String buyUserId;
    private String buyAddr;
    private String pro;
    private String city;
    private String area;
    private Double goodsTotal = 0.0;
    private Double scoreTotal = 0.0;
    private Double freightTotal = 0.0;
    private Double allTotal = 0.0;
    private Double payTotal = 0.0;
    private Date payTime;
    private Integer state = 0;
    private Integer isdel = 0;
    private Integer source = 0;
    private Date createTime = new Date();
    private Date confirmTime;
    private String message;
    private Integer isClosed = 0;
    private Integer payType = 0;

    private Integer goodsType = 0;
    private Integer takeWay = 0;
    private String backUserCode;
    private Date backTime;
    private String backCode;


    public TorderMain() {
        super();
    }

    @GenericGenerator(name = "generator", strategy = "uuid.hex")
    @Id
    @GeneratedValue(generator = "generator")

    @Column(name = "id", unique = true, nullable = false)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "code")
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Column(name = "payCode")
    public String getPayCode() {
        return payCode;
    }

    public void setPayCode(String payCode) {
        this.payCode = payCode;
    }

    @Column(name = "buyUserId")
    public String getBuyUserId() {
        return buyUserId;
    }

    public void setBuyUserId(String buyUserId) {
        this.buyUserId = buyUserId;
    }

    @Column(name = "buyAddr")
    public String getBuyAddr() {
        return buyAddr;
    }

    public void setBuyAddr(String buyAddr) {
        this.buyAddr = buyAddr;
    }

    @Column(name = "pro")
    public String getPro() {
        return pro;
    }

    public void setPro(String pro) {
        this.pro = pro;
    }

    @Column(name = "city")
    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Column(name = "area")
    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    @Column(name = "goodsTotal")
    public Double getGoodsTotal() {
        return goodsTotal;
    }

    public void setGoodsTotal(Double goodsTotal) {
        this.goodsTotal = goodsTotal;
    }

    @Column(name = "freightTotal")
    public Double getFreightTotal() {
        return freightTotal;
    }

    public void setFreightTotal(Double freightTotal) {
        this.freightTotal = freightTotal;
    }

    @Column(name = "allTotal")
    public Double getAllTotal() {
        return allTotal;
    }

    public void setAllTotal(Double allTotal) {
        this.allTotal = allTotal;
    }

    @Column(name = "payTotal")
    public Double getPayTotal() {
        return payTotal;
    }

    public void setPayTotal(Double payTotal) {
        this.payTotal = payTotal;
    }

    @Column(name = "payTime")
    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    @Column(name = "state")
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }


    @Column(name = "isdel")
    public Integer getIsdel() {
        return isdel;
    }

    public void setIsdel(Integer isdel) {
        this.isdel = isdel;
    }

    @Column(name = "createTime")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Column(name = "confirmTime")
    public Date getConfirmTime() {
        return confirmTime;
    }

    public void setConfirmTime(Date confirmTime) {
        this.confirmTime = confirmTime;
    }

    @Column(name = "message")
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }


    @Column(name = "isClosed")
    public Integer getIsClosed() {
        return isClosed;
    }

    public void setIsClosed(Integer isClosed) {
        this.isClosed = isClosed;
    }

    @Column(name = "source")
    public Integer getSource() {
        return source;
    }

    public void setSource(Integer source) {
        this.source = source;
    }


    @Column(name = "payType")
    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }


    @Column(name = "backUserCode")
    public String getBackUserCode() {
        return backUserCode;
    }

    public void setBackUserCode(String backUserCode) {
        this.backUserCode = backUserCode;
    }

    @Column(name = "openId")
    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    @Column(name = "scoreTotal")
    public Double getScoreTotal() {
        return scoreTotal;
    }

    public void setScoreTotal(Double scoreTotal) {
        this.scoreTotal = scoreTotal;
    }
    @Column(name = "goodsType")
    public Integer getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(Integer goodsType) {
        this.goodsType = goodsType;
    }
    @Column(name = "takeWay")
    public Integer getTakeWay() {
        return takeWay;
    }

    public void setTakeWay(Integer takeWay) {
        this.takeWay = takeWay;
    }
    @Column(name = "backTime")
    public Date getBackTime() {
        return backTime;
    }

    public void setBackTime(Date backTime) {
        this.backTime = backTime;
    }
    @Column(name = "backCode")
    public String getBackCode() {
        return backCode;
    }

    public void setBackCode(String backCode) {
        this.backCode = backCode;
    }
}
